package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.project.bean.RoomBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IRoomMapper extends BaseMapper<RoomBean> {

    public IPage<RoomBean> findByItem(Page pg,
                                      @Param("address") String address, @Param("status") String status,
                                      @Param("isIn") String isIn, @Param("type") String type);


    public RoomBean findById(int id);
}
